package com.fz.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fz.entity.Notice;
import com.baomidou.mybatisplus.extension.service.IService;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 存储社区公告发布与状态 服务类
 * </p>
 *
 * @author hyr
 * @since 2025-06-18
 */
public interface NoticeService extends IService<Notice> {
    Page<Notice> getList(Integer pageNo, Integer pageSize);

    Boolean add(String title, String content, LocalDateTime time);

    boolean update(Long id, String title, String content);
    boolean update(Long id,Long view);

    boolean del(Long id,Integer statue,Integer statu);
    List<Notice> search(String input);
    Page<Notice> search(String input, Integer pageNo, Integer pageSize);
    Page<Notice> showList(Integer pageNo, Integer pageSize);
    String detail(Long id);

    Long getByNoticeId(Long NoticeId);

    //赋值给浏览量
    List<Notice> updateview(List<Notice> NoticeList);
}
